package com.guan.trend.client;

import cn.hutool.core.collection.CollectionUtil;
import com.guan.trend.pojo.IndexData;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName IndexDataClientFeignHystrix
 * @Author GuanCary
 * @Date 2020/4/21 21:48
 * @Version 1.0
 **/
@Component
public class IndexDataClientFeignHystrix implements IndexDataClient {
    @Override
    public List<IndexData> getIndexData(String code) {
        IndexData indexData = new IndexData();
        indexData.setClosePoint(0);
        indexData.setDate("0000-00-00");
        return CollectionUtil.toList(indexData);
    }
}